//
//  SaleReturnCell.m
//  FKGW
//
//  Created by song ce on 2017/2/22.
//  Copyright © 2017年 song ce. All rights reserved.
//

#import "SaleReturnCell.h"
#import "UIView+Extend.h"
#import "OSSHelper.h"
@implementation SaleReturnCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle= UITableViewCellSelectionStyleNone;
    


}

-(void)setModel:(CompeleteOrderModel *)model{
    _model = model;
    [[OSSHelper sharedHelper] OSSDownLoadWithObjectKey:_model.pPic downLoadBlock:^(NSData *data) {
        dispatch_async(dispatch_get_main_queue(), ^{
            self.shopIconImageV.image = [UIImage imageWithData:data];
        });
    }];

    self.goodsNameLabel.text = _model.pName;
    self.priceLabel.text = _model.pPrice;
    self.standardLabel.text = _model.pProperty;
//    [self.statusBtn setTitle:_model.oStatus forState:UIControlStateNormal];
//    self.orderNumberLabel.text = _model.oId;
//    
//    if([_model.oStatus isEqualToString:@"退款成功"]){
//        [self.statusBtn setTitleColor:[UIColor colorWithRed:0./255 green:216./255 blue:201./255 alpha:1.]
//                             forState:UIControlStateNormal];
//    }
//    if([_model.oStatus isEqualToString:@"退款失败"]){
//        [self.statusBtn setTitleColor:[UIColor colorWithRed:255./255 green:127./255 blue:108./255 alpha:1.]
//                             forState:UIControlStateNormal];
//    }
//    if([_model.oStatus isEqualToString:@"交易完成"]){
//        [self.statusBtn setTitleColor:[UIColor colorWithRed:255./255 green:216./255 blue:1./255 alpha:1.]
//                             forState:UIControlStateNormal];
//    }

}


- (IBAction)statusBtn:(UIButton *)sender {
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
